<%--
  - Author		:	이 영호(Youngho Lee)	
  --%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page pageEncoding="utf-8" %>
<%@ include file="/WEB-INF/pages/includes/taglibs.jspf" %>
<%@ include file="/WEB-INF/pages/includes/variables.jspf" %>
<%@ include file="/WEB-INF/pages/includes/doctype.jspf" %>
<html>
	<head>
<%@ include file="/WEB-INF/pages/includes/metatags.jspf" %>
		<title><fmt:message key="pages.title" /></title>
		<link rel="stylesheet" type="text/css" href="<c:url value="${dirStyles}/common.css" />" />

		<script type="text/javascript" src="<c:url value="${dirScripts}/jquery-1.7.2.min.js" />"></script>
		<script type="text/javascript">
			$(function(){
			});
			
			function goAction(type){
				document.frm.type.value=type;
				document.frm.submit();
			}

		</script>
	</head>
	<body>
<%@ include file="/WEB-INF/pages/includes/header.jsp" %>
		<div class="bodyWrap">
<%@ include file="/WEB-INF/pages/includes/left.jsp" %>
			<div class="contWrap">
				<div class="contMenuTitle">
					<img src="<c:url value="${dirImages}/subtit_03.gif" />" title="검증 결과 조회" alt="검증 결과 조회">
				</div>
				<div class="secTitle">
					<img src="<c:url value="${dirImages}/icon.png" />" title="검증결과" alt="검증결과" > 검증결과
				</div>
				<table class="listTbl linked">
					<thead>
						<tr>
							<th>검증 분야</th>
							<th>검증 신청</th>
							<th>성공</th>
							<th>오류</th>
							<th class="lastTh">진행 중</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${result}" var="r">
							<c:if test="${r.TYPE eq 1}">
								<tr onclick="javascript:goAction('applet');">
									<td>애플릿 검증 프로그램</td>
									<td>
										${r.REQ_CNT}
									</td>
									<td>
										${r.SUC_CNT}
									</td>
									<td>
										${r.ERR_CNT}
									</td>
									<td>
										${r.CHK_CNT}
									</td>
								</tr>
							</c:if>
							<c:if test="${r.TYPE eq 2}">
								<tr onclick="javascript:goAction('pay');">
									<td>결제단말 호환성 검증 애플릿</td>
									<td>
										${r.REQ_CNT}
									</td>
									<td>
										${r.SUC_CNT}
									</td>
									<td>
										${r.ERR_CNT}
									</td>
									<td>
										${r.CHK_CNT}
									</td>
								</tr>	
							</c:if>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
		<form name="frm" method="post" action="<c:url value="/backoffice/result/listDetail.do" />">
			<input type="hidden" name="type" />
		</form>
<%@ include file="/WEB-INF/pages/includes/footer.jsp" %>
	</body>
</html> 